#ifndef _SELECT_ID_H
#define _SELECT_ID_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include <json-c/json.h>
#include <unistd.h>
#include <time.h>

// -------------------------- 全局配置 --------------------------
#define API_URL "http://kzexpress.market.alicloudapi.com/api-mall/api/express/query"
#define AUTH_HEADER "Authorization: APPCODE afa96ac6c5df48de8bb7279bd0c2a496"
#define CONTENT_TYPE_HEADER "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" // 明确编码
#define REQUEST_INTERVAL 5//间隔时间
#define TIMEOUT_SEC 15//超时
size_t header_callback(void *contents, size_t size, size_t nmemb, void *userp);
void  parse_and_print_response_2(const char *response);
int  send_logistics_request(const char *express_no);
char * select_id(const char *target_express_no);

#endif